﻿/******************************************************   
创建者: 梁家健
创建时间: 2017-03-15
修改:
修改时间: 
功能: 上新计划表实体
 ******************************************************/

using com.nm.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlanAPI.model
{
    public class PLBasSalePlanModel
    {
        /// <summary>
        /// 上新计划表实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-15
        public class CreatModel: NeceModel
        {
            [ParamDescription("审核人")]
            public string Checker { get; set; }
            [ParamDescription("修改时间")]
            public DateTime? MofifyDTM { get; set; }
            [ParamDescription("允许使用")]
            public long? AllowUsed { get; set; }
            [ParamDescription("读取时间")]
            public DateTime? LoadTime { get; set; }
            [ParamDescription("修改时间")]
            public DateTime? EtlDate { get; set; }
        }

        /// <summary>
        /// 上新计划表主要实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-17
        public class NeceModel: DateModel
        {
            [ParamDescription("公司")]
            public string CompanyID { get; set; }
            [ParamDescription("零售分区")]
            public string ParentAreaID { get; set; }
            [ParamDescription("对应季节")]
            public string SeasonID { get; set; }
            [ParamDescription("周更新率")]
            public decimal? UpdateRate { get; set; }
            //[ParamDescription("周开始日期")]
            //public DateTime? WeekBgdate { get; set; }
            //[ParamDescription("周结束日期")]
            //public DateTime? WeekEnddate { get; set; }
            //[ParamDescription("去年同周开始日期")]
            //public DateTime? PastWeekBgdate { get; set; }
            //[ParamDescription("去年同周结束日期")]
            //public DateTime? PastWeekEnddate { get; set; }
            [ParamDescription("审核状态")]
            public long? CheckState { get; set; }
            [ParamDescription("备注")]
            public string Remark { get; set; }
            [ParamDescription("数据源")]
            public string ExtrSource { get; set; }
        }

        /// <summary>
        /// 上新计划表年月周实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-04-15
        public class DateModel
        {
            [ParamDescription("年份")]
            public long? Yearv { get; set; }
            [ParamDescription("周")]
            public long? Weekv { get; set; }
            [ParamDescription("所属月份")]
            public long? Monthv { get; set; }
        }

        /// <summary>
        /// 上新计划表显示实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-17
        public class ListModel: NeceModel
        {
            [ParamDescription("季节名称")]
            public string SeasonName { get; set; }
            [ParamDescription("零售分区名称")]
            public string ParentAreaName { get; set; }
        }

        /// <summary>
        /// 上新计划表修改实体
        /// </summary>
        /// Writer：梁家健
        /// Create Date：2017-03-15
        public class ModifyModel
        {
            public IList<NeceModel> list { get; set; }
        }
    }
}
